<div id="top" style="font-size:14px; line-height:18px;">
	<div class="topBox">
		<!-- Place this tag where you want the +1 button to render. -->
		<div class="g-plusone" data-size="medium" data-annotation="none"></div>
		
		<!-- Place this tag after the last +1 button tag. -->
		<script type="text/javascript">
		  window.___gcfg = {lang: 'zh-TW'};
		
		  (function() {
			var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
			po.src = 'https://apis.google.com/js/plusone.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
		  })();
		</script>
		<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fjoin.withost.net%2F&amp;send=false&amp;layout=button_count&amp;width=60&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:70px; height:21px;" allowTransparency="true"></iframe>
	</div>
	<?php
	if(Yii::app()->user->isGuest){
	?>
	<div class="topBox"><a href="<?=Yii::app()->createUrl('site/login')?>" title="會員登入" target="_self">登入</a></div>
	<div class="topBox"><a href="<?=Yii::app()->createUrl('site/register')?>" title="立即加入會員!" target="_self">立即加入會員!</a></div>
	<?php
	}else{
	?>
	<div class="topBox"><a target="_self" title="購物車" href="<?=Yii::app()->createUrl('shop/cart')?>"><img border="0" align="middle" width="17" height="20" alt="購物車" src="images/icon_buy.png">購物車</a></div>
	<div class="topBox"><a href="<?=Yii::app()->createUrl('site/logout')?>" title="會員登出" target="_self">登出</a></div>
	<div class="topBox"><a href="<?=Yii::app()->createUrl('site/center')?>" title="立即加入會員!" target="_self">
		<?=Yii::app()->user->name?>
		</a></div>
	<?php
	}
	?>
	<div id="slogan">揪夥厚禮Song! 愛揪才會贏!</div>
	<a href="index.php" target="_self"><img src="images/logo.png" alt="Jowin!揪贏網" title="Jowin!揪贏網" width="100" height="36" border="0" /></a>
</div>
<div id="header" _height="none" style="font-size:14px;line-height:18px;">
	<?php
	if($time>0){
	?>
	<div class="Status01" id="intervalHeader">『參與下次活動所須時間』：<span style="color:#FF0000; font-size:16px; font-weight:bold;" id="time_intervalHeader"></span></div>
	<script>
	$(document).ready(function() {
		onTimer('intervalHeader',<?=$time?>,changeShowTimeHeader,onTimeEndHeader);
	});
	 
	// 该函数用于显示倒计时
	function changeShowTimeHeader(id,time) {
		/* 该函数内编写显示倒计时的语句 */  
		$(id).html(time);    
	}
	//倒計時結束的時候執行的函數
	function onTimeEndHeader(id){
		$("#"+id)[0].style.display='none';
	}
	</script>
	<?php
	}else{
	?>
	<div class="Status01" id="intervalHeader">『參與下次活動所須時間』：<span style="color:#FF0000; font-size:16px; font-weight:bold;" id="time_intervalHeader">00:00:00</span></div>
	<?php
	}
	if(Yii::app()->user->id && !Helper::userStatus(Yii::app()->user->id)){
	?>
	<div class="Status02">您尚未完成<a href="<?=Yii::app()->createUrl('site/userinfo')?>" title="前往驗證">驗證</a>，還無法參與 <a href="<?=Yii::app()->createUrl('site/logout')?>" title="登出" target="_self">登出</a></div>
	<?php
	}
	?>
</div>
